package com.demo.nacos.serviceb.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

// 在Feign接口上使用@RequestMapping会跟Controller冲突
// 如果请求接口有公共前缀就用@FeignClient的path属性
@FeignClient("ServiceA")
public interface ServiceAClient {
    @GetMapping( "/my_say")
    String getMySay();
}
